package com.jc.oss.adapter;

import com.jc.oss.Entity.FileInfo;
import com.jc.oss.adapter.StorageAdapter;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description: aliyun适配器
 * @Author: ASL_ly
 * @Package: com.jc.oss.service.impl
 * @Project: jc-club
 * @Date: 2024/10/26  14:41
 */
public class AliyunStorageAdapter implements StorageAdapter {
    @Override
    public void createBucket(String bucket) {

    }

    @Override
    public void uploadFile(MultipartFile uploadFile, String bucket, String objectName) {

    }

    @Override
    public List<String> getAllBucket() {

       List<String> strings = new ArrayList<>();
       strings.add("123");
        return strings;
    }

    @Override
    public List<FileInfo> listAllFile(String bucket) {
        return null;
    }

    @Override
    public InputStream downLoad(String bucket, String objectName) {
        return null;
    }

    @Override
    public void deleteBucket(String bucket) {

    }

    @Override
    public void deleteObject(String bucket, String objectName) {

    }

    @Override
    public String getUrl(String bucketName, String objectName) {
        return null;
    }
}
